package com.aspose.cells;

class zxw extends zbz {
   private String d;
   private int e = -1;
   boolean a;

   zxw() {
      this.c(1054);
   }

   void a(String var1, int var2) {
      this.d = var1;
      this.e = var2 & '\uffff';
      this.a((short)(this.d.length() * 2 + 5));
      this.c = new byte[this.d()];
      System.arraycopy(com.aspose.cells.b.a.zc.a(var2), 0, this.c, 0, 2);
      System.arraycopy(com.aspose.cells.b.a.zc.a(this.d.length()), 0, this.c, 2, 2);
      this.c[4] = 1;
      System.arraycopy(Encoding.getUnicode().a(this.d), 0, this.c, 5, this.d() - 5);
   }

   String a() {
      if (this.d != null && !"".equals(this.d)) {
         return this.d;
      } else if (this.c != null && this.c.length > 0) {
         if (this.c[4] == 0) {
            byte[] var1 = new byte[2 * this.c.length - 10];

            for(int var2 = 0; var2 < this.c.length - 5; ++var2) {
               var1[2 * var2] = this.c[var2 + 5];
            }

            this.d = Encoding.getUnicode().a(var1);
         } else {
            this.d = Encoding.getUnicode().a(this.c, 5, this.c.length - 5);
         }

         return this.d;
      } else {
         return "";
      }
   }

   int b() {
      if (this.e < 0) {
         if (this.c != null && this.c.length > 0) {
            this.e = com.aspose.cells.b.a.zc.e(this.c, 0) & '\uffff';
            return this.e;
         } else {
            return 0;
         }
      } else {
         return this.e;
      }
   }

   void a(zxw var1) {
      super.a((zbz)var1);
      this.d = var1.d;
      this.e = var1.e;
   }
}
